.class public Lcom/facebook/orca/compose/ComposeView;
.super Lcom/facebook/orca/activity/OrcaFragment;
.source "ComposeView.java"


# static fields
.field private static J:I

.field private static K:I

.field private static L:I


# instance fields
.field private M:Lcom/facebook/orca/cache/DataCache;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private N:Lcom/facebook/orca/attachments/MediaAttachmentFactory;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private O:Lcom/facebook/orca/prefs/OrcaSharedPreferences;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private P:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private Q:Landroid/support/v4/app/FragmentManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private R:Lcom/facebook/orca/cache/ThreadDisplayCache;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private S:Lcom/facebook/orca/common/util/OfflineThreadingIdGenerator;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private T:Lcom/facebook/orca/push/PresenceManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private U:Lcom/facebook/orca/prefs/UiCounters;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private V:Landroid/location/LocationManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private W:Landroid/view/LayoutInflater;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private X:Landroid/view/View;

.field private Y:Landroid/view/View;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080032
    .end annotation
.end field

.field private Z:Landroid/view/View;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080034
    .end annotation
.end field

.field private aa:Landroid/widget/EditText;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080036
    .end annotation
.end field

.field private ab:Landroid/widget/ImageButton;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080037
    .end annotation
.end field

.field private ac:Landroid/widget/ImageButton;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080033
    .end annotation
.end field

.field private ad:Landroid/widget/Button;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080035
    .end annotation
.end field

.field private ae:Landroid/widget/TextView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080038
    .end annotation
.end field

.field private af:Lcom/facebook/orca/ops/OrcaServiceFragment;

.field private ag:Ljava/lang/String;

.field private ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

.field private ai:Lcom/facebook/orca/attachments/MediaAttachment;

.field private aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

.field private ak:Lcom/facebook/orca/location/LocationResult;

.field private al:Ljava/lang/Boolean;

.field private am:Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;

.field private an:Lcom/facebook/orca/compose/ComposeMode;

.field private ao:Ljava/lang/String;

.field private ap:Z

.field private aq:I

.field private ar:I

.field private as:J

.field private at:J

.field private au:Z

.field private av:Lcom/facebook/orca/push/PresenceManager$OnContactTypingStateChangedListener;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 83
    const/16 v0, 0x1f4

    sput v0, Lcom/facebook/orca/compose/ComposeView;->J:I

    .line 84
    sget v0, Lcom/facebook/orca/compose/ComposeView;->J:I

    const/16 v1, 0x32

    sub-int/2addr v0, v1

    sput v0, Lcom/facebook/orca/compose/ComposeView;->K:I

    .line 85
    sget v0, Lcom/facebook/orca/compose/ComposeView;->J:I

    const/16 v1, 0x14

    sub-int/2addr v0, v1

    sput v0, Lcom/facebook/orca/compose/ComposeView;->L:I

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/activity/OrcaFragment;-><init>()V

    .line 150
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    return-void
.end method

.method private A()V
    .locals 2

    .prologue
    .line 531
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    .line 532
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ac:Landroid/widget/ImageButton;

    const v1, 0x7f020017

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageResource(I)V

    .line 533
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V

    .line 534
    return-void
.end method

.method private B()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 561
    const/4 v0, 0x0

    .line 562
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->F()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 563
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    if-nez v0, :cond_2

    move v0, v2

    .line 570
    :cond_0
    :goto_0
    if-eqz v0, :cond_1

    .line 571
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->I()V

    .line 573
    :cond_1
    return-void

    .line 566
    :cond_2
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    invoke-static {v0}, Lcom/facebook/orca/prefs/PrefKeys;->b(Ljava/lang/String;)Lcom/facebook/orca/prefs/PrefKey;

    move-result-object v0

    .line 567
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->O:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    invoke-virtual {v1, v0, v2}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a(Lcom/facebook/orca/prefs/PrefKey;Z)Z

    move-result v0

    goto :goto_0
.end method

.method private C()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 597
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->G()Z

    move-result v0

    if-nez v0, :cond_0

    .line 598
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->D()V

    .line 621
    :goto_0
    return-void

    .line 602
    :cond_0
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->H()Z

    move-result v0

    if-nez v0, :cond_1

    .line 603
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->E()V

    goto :goto_0

    .line 607
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    sget-object v1, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-ne v0, v1, :cond_3

    move v0, v4

    .line 608
    :goto_1
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    if-eqz v1, :cond_2

    .line 609
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->O:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    invoke-virtual {v1}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a()Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;

    move-result-object v1

    .line 610
    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    invoke-static {v2}, Lcom/facebook/orca/prefs/PrefKeys;->b(Ljava/lang/String;)Lcom/facebook/orca/prefs/PrefKey;

    move-result-object v2

    .line 611
    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a(Lcom/facebook/orca/prefs/PrefKey;Z)V

    .line 612
    invoke-virtual {v1}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a()V

    .line 614
    :cond_2
    if-eqz v0, :cond_4

    .line 615
    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->al:Ljava/lang/Boolean;

    .line 616
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->I()V

    goto :goto_0

    :cond_3
    move v0, v3

    .line 607
    goto :goto_1

    .line 618
    :cond_4
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->al:Ljava/lang/Boolean;

    .line 619
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->J()V

    goto :goto_0
.end method

.method private D()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    const/4 v2, 0x0

    .line 628
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->W:Landroid/view/LayoutInflater;

    const v1, 0x7f03001e

    invoke-virtual {v0, v1, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 629
    const v0, 0x7f08007c

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 630
    const v3, 0x7f0a0098

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 631
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    invoke-direct {v0, v3}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 632
    const v3, 0x7f0a0094

    invoke-virtual {v0, v3}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    .line 633
    const v3, 0x7f0a0007

    new-instance v4, Lcom/facebook/orca/compose/ComposeView$12;

    invoke-direct {v4, p0}, Lcom/facebook/orca/compose/ComposeView$12;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v3, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 642
    const v3, 0x7f0a0008

    invoke-virtual {v0, v3, v5}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 643
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    move v3, v2

    move v4, v2

    move v5, v2

    .line 644
    invoke-virtual/range {v0 .. v5}, Landroid/app/AlertDialog;->setView(Landroid/view/View;IIII)V

    .line 645
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 646
    return-void
.end method

.method private E()V
    .locals 2

    .prologue
    .line 653
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const-string v1, "android.settings.LOCATION_SOURCE_SETTINGS"

    invoke-static {v0, v1}, Lcom/facebook/orca/common/util/IntentUtil;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 654
    const-string v0, "android.settings.LOCATION_SOURCE_SETTINGS"

    invoke-direct {p0, v0}, Lcom/facebook/orca/compose/ComposeView;->d(Ljava/lang/String;)V

    .line 661
    :goto_0
    return-void

    .line 656
    :cond_0
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const-string v1, "android.settings.SETTINGS"

    invoke-static {v0, v1}, Lcom/facebook/orca/common/util/IntentUtil;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 657
    const-string v0, "android.settings.SETTINGS"

    invoke-direct {p0, v0}, Lcom/facebook/orca/compose/ComposeView;->d(Ljava/lang/String;)V

    goto :goto_0

    .line 659
    :cond_1
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/facebook/orca/compose/ComposeView;->d(Ljava/lang/String;)V

    goto :goto_0
.end method

.method private F()Z
    .locals 1

    .prologue
    .line 707
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->G()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->H()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private G()Z
    .locals 3

    .prologue
    .line 716
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->O:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    sget-object v1, Lcom/facebook/orca/prefs/PrefKeys;->v:Lcom/facebook/orca/prefs/PrefKey;

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a(Lcom/facebook/orca/prefs/PrefKey;Z)Z

    move-result v0

    return v0
.end method

.method private H()Z
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 726
    new-instance v0, Landroid/location/Criteria;

    invoke-direct {v0}, Landroid/location/Criteria;-><init>()V

    .line 727
    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/location/Criteria;->setAccuracy(I)V

    .line 728
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->V:Landroid/location/LocationManager;

    invoke-virtual {v1, v0, v2}, Landroid/location/LocationManager;->getBestProvider(Landroid/location/Criteria;Z)Ljava/lang/String;

    move-result-object v0

    .line 729
    if-eqz v0, :cond_0

    move v0, v2

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private I()V
    .locals 3

    .prologue
    .line 751
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->M:Lcom/facebook/orca/cache/DataCache;

    invoke-virtual {v0}, Lcom/facebook/orca/cache/DataCache;->g()Lcom/facebook/orca/location/LocationResult;

    move-result-object v0

    .line 752
    if-eqz v0, :cond_1

    .line 753
    sget-object v1, Lcom/facebook/orca/compose/ComposeView$LocationState;->HAS_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    invoke-direct {p0, v1, v0}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 758
    :goto_0
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->af:Lcom/facebook/orca/ops/OrcaServiceFragment;

    invoke-virtual {v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->c()Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/ops/OrcaServiceOperation$State;->INIT:Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    if-ne v0, v1, :cond_0

    .line 759
    invoke-static {}, Lcom/facebook/orca/server/GetDeviceLocationParams;->newBuilder()Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;

    move-result-object v0

    const/16 v1, 0x64

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;->a(I)Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;

    move-result-object v0

    const-wide/16 v1, 0x2710

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;->a(J)Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;->a(Z)Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/GetDeviceLocationParamsBuilder;->d()Lcom/facebook/orca/server/GetDeviceLocationParams;

    move-result-object v0

    .line 764
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 765
    const-string v2, "getDeviceLocationParams"

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 766
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->af:Lcom/facebook/orca/ops/OrcaServiceFragment;

    const-string v2, "get_device_location"

    invoke-virtual {v0, v2, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    .line 768
    :cond_0
    return-void

    .line 755
    :cond_1
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->FINDING_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    goto :goto_0
.end method

.method private J()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 771
    iput-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ak:Lcom/facebook/orca/location/LocationResult;

    .line 772
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 773
    return-void
.end method

.method private K()V
    .locals 2

    .prologue
    .line 812
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->O()V

    .line 813
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->M()V

    .line 814
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V

    .line 815
    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(ZZ)V

    .line 816
    return-void
.end method

.method private L()V
    .locals 4

    .prologue
    .line 863
    iget-boolean v0, p0, Lcom/facebook/orca/compose/ComposeView;->au:Z

    if-eqz v0, :cond_0

    .line 874
    :goto_0
    return-void

    .line 866
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$14;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$14;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    const-wide/16 v2, 0x2710

    invoke-virtual {v0, v1, v2, v3}, Landroid/widget/EditText;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 873
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/compose/ComposeView;->au:Z

    goto :goto_0
.end method

.method private M()V
    .locals 2

    .prologue
    .line 892
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getLayout()Landroid/text/Layout;

    move-result-object v0

    if-nez v0, :cond_0

    .line 906
    :goto_0
    return-void

    .line 896
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getLayout()Landroid/text/Layout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/text/Layout;->getLineCount()I

    move-result v0

    .line 897
    const/4 v1, 0x1

    if-le v0, v1, :cond_1

    .line 898
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-virtual {v0}, Landroid/widget/ImageButton;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p0

    check-cast p0, Landroid/widget/LinearLayout$LayoutParams;

    .line 900
    const/16 v0, 0x50

    iput v0, p0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    goto :goto_0

    .line 902
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-virtual {v0}, Landroid/widget/ImageButton;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p0

    check-cast p0, Landroid/widget/LinearLayout$LayoutParams;

    .line 904
    const/16 v0, 0x10

    iput v0, p0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    goto :goto_0
.end method

.method private N()V
    .locals 2

    .prologue
    .line 909
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ad:Landroid/widget/Button;

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->c()Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v1, 0x1

    :goto_0
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    .line 910
    return-void

    .line 909
    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private O()V
    .locals 4

    .prologue
    .line 913
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    .line 914
    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    .line 915
    sget v1, Lcom/facebook/orca/compose/ComposeView;->K:I

    if-le v0, v1, :cond_1

    .line 916
    sget v1, Lcom/facebook/orca/compose/ComposeView;->L:I

    if-le v0, v1, :cond_0

    .line 917
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ae:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->k()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f09001e

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 921
    :goto_0
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ae:Landroid/widget/TextView;

    sget v2, Lcom/facebook/orca/compose/ComposeView;->J:I

    sub-int v0, v2, v0

    invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 922
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ae:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 927
    :goto_1
    return-void

    .line 919
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ae:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->k()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f09000f

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    .line 924
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ae:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 925
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ae:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method

.method private P()V
    .locals 5

    .prologue
    .line 930
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    sget v1, Lcom/facebook/orca/compose/ComposeView;->J:I

    if-le v0, v1, :cond_1

    .line 940
    :cond_0
    :goto_0
    return-void

    .line 933
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->am:Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;

    if-eqz v0, :cond_0

    .line 934
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->U:Lcom/facebook/orca/prefs/UiCounters;

    const-string v1, "send_clicked"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/prefs/UiCounters;->c(Ljava/lang/String;)V

    .line 935
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    sget-object v1, Lcom/facebook/orca/compose/ComposeView$LocationState;->HAS_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-ne v0, v1, :cond_2

    .line 936
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->M:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ak:Lcom/facebook/orca/location/LocationResult;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/facebook/orca/cache/DataCache;->a(Ljava/lang/String;Lcom/facebook/orca/location/LocationResult;J)V

    .line 938
    :cond_2
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->am:Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;

    invoke-virtual {v0}, Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;->a()V

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Ljava/lang/String;)Landroid/text/SpannableString;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1}, Lcom/facebook/orca/compose/ComposeView;->e(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;)Lcom/facebook/orca/attachments/MediaAttachmentFactory;
    .locals 1
    .parameter

    .prologue
    .line 79
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->N:Lcom/facebook/orca/attachments/MediaAttachmentFactory;

    return-object v0
.end method

.method private a(Lcom/facebook/orca/attachments/MediaAttachment;Z)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 538
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    .line 539
    if-nez p1, :cond_0

    .line 540
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V

    .line 555
    :goto_0
    return-void

    .line 545
    :cond_0
    iput-object p1, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    .line 546
    const/16 v0, 0x32

    invoke-virtual {p1, v0}, Lcom/facebook/orca/attachments/MediaAttachment;->a(I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 548
    if-eqz v0, :cond_1

    .line 549
    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    .line 550
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ac:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 554
    :goto_1
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V

    goto :goto_0

    .line 552
    :cond_1
    const-string v0, "ComposeView"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Failed to preview from attachment at "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/facebook/orca/attachments/MediaAttachment;->d()Lcom/facebook/orca/attachments/MediaResource;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/attachments/MediaResource;->b()Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/orca/debug/BLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method

.method private a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    const v1, 0x7f02001c

    .line 776
    iput-object p1, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    .line 777
    iput-object p2, p0, Lcom/facebook/orca/compose/ComposeView;->ak:Lcom/facebook/orca/location/LocationResult;

    .line 779
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-ne p1, v0, :cond_1

    .line 780
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    const v1, 0x7f020019

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageResource(I)V

    .line 792
    :cond_0
    :goto_0
    return-void

    .line 782
    :cond_1
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->FINDING_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-ne p1, v0, :cond_2

    .line 783
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_0

    .line 785
    :cond_2
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->HAS_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-ne p1, v0, :cond_3

    .line 786
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_0

    .line 788
    :cond_3
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->LOCATION_ERROR:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-ne p1, v0, :cond_0

    .line 789
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    .line 790
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Lcom/facebook/orca/attachments/MediaAttachment;Z)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/attachments/MediaAttachment;Z)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Lcom/facebook/orca/location/LocationResult;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1}, Lcom/facebook/orca/compose/ComposeView;->b(Lcom/facebook/orca/location/LocationResult;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Ljava/lang/CharSequence;Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/compose/ComposeView;->a(Ljava/lang/CharSequence;Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Ljava/lang/String;I)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/compose/ComposeView;->a(Ljava/lang/String;I)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Ljava/lang/Throwable;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1}, Lcom/facebook/orca/compose/ComposeView;->a(Ljava/lang/Throwable;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;ZZ)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/compose/ComposeView;->a(ZZ)V

    return-void
.end method

.method private a(Lcom/facebook/orca/location/LocationResult;)V
    .locals 2
    .parameter

    .prologue
    .line 733
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    sget-object v1, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-eq v0, v1, :cond_0

    .line 734
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->HAS_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    invoke-direct {p0, v0, p1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 736
    :cond_0
    return-void
.end method

.method private a(Ljava/lang/CharSequence;Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 806
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 807
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->P:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    invoke-virtual {v0, v1, p1, p2}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(Landroid/view/View;Ljava/lang/CharSequence;Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;)V

    .line 809
    :cond_0
    return-void
.end method

.method private a(Ljava/lang/String;I)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 877
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->y()V

    .line 878
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ao:Ljava/lang/String;

    if-nez v0, :cond_1

    .line 889
    :cond_0
    :goto_0
    return-void

    .line 881
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ao:Ljava/lang/String;

    invoke-static {p1, v0}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 884
    iget v0, p0, Lcom/facebook/orca/compose/ComposeView;->ar:I

    if-eq v0, p2, :cond_0

    .line 887
    iput p2, p0, Lcom/facebook/orca/compose/ComposeView;->ar:I

    goto :goto_0
.end method

.method private a(Ljava/lang/Throwable;)V
    .locals 2
    .parameter

    .prologue
    .line 745
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    sget-object v1, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-eq v0, v1, :cond_0

    .line 746
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->LOCATION_ERROR:Lcom/facebook/orca/compose/ComposeView$LocationState;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 748
    :cond_0
    return-void
.end method

.method private a(ZZ)V
    .locals 8
    .parameter
    .parameter

    .prologue
    const-wide/16 v6, 0x2710

    const/4 v4, 0x0

    const/4 v5, 0x1

    .line 820
    :try_start_0
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->y()V

    .line 821
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ao:Ljava/lang/String;

    if-nez v0, :cond_1

    .line 860
    :cond_0
    :goto_0
    return-void

    .line 824
    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 825
    if-eqz p1, :cond_2

    .line 826
    iput-wide v0, p0, Lcom/facebook/orca/compose/ComposeView;->at:J

    .line 829
    :cond_2
    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    .line 831
    if-nez p2, :cond_3

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->m()Z

    move-result v3

    if-nez v3, :cond_4

    :cond_3
    move v2, v4

    .line 839
    :goto_1
    iget-object v3, p0, Lcom/facebook/orca/compose/ComposeView;->T:Lcom/facebook/orca/push/PresenceManager;

    invoke-virtual {v3}, Lcom/facebook/orca/push/PresenceManager;->g()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 843
    iget v3, p0, Lcom/facebook/orca/compose/ComposeView;->aq:I

    if-ne v3, v2, :cond_6

    iget-wide v3, p0, Lcom/facebook/orca/compose/ComposeView;->as:J

    sub-long v3, v0, v3

    cmp-long v3, v3, v6

    if-gez v3, :cond_6

    .line 844
    iget v0, p0, Lcom/facebook/orca/compose/ComposeView;->aq:I

    if-ne v0, v5, :cond_0

    .line 845
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->L()V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 856
    :catch_0
    move-exception v0

    .line 858
    const-string v1, "ComposeView"

    const-string v2, "Exception sending typing notifications"

    invoke-static {v1, v2, v0}, Lcom/facebook/orca/debug/BLog;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 833
    :cond_4
    :try_start_1
    invoke-interface {v2}, Landroid/text/Editable;->length()I

    move-result v2

    if-lez v2, :cond_5

    iget-wide v2, p0, Lcom/facebook/orca/compose/ComposeView;->at:J

    sub-long v2, v0, v2

    cmp-long v2, v2, v6

    if-gez v2, :cond_5

    move v2, v5

    .line 834
    goto :goto_1

    :cond_5
    move v2, v4

    .line 836
    goto :goto_1

    .line 849
    :cond_6
    iput v2, p0, Lcom/facebook/orca/compose/ComposeView;->aq:I

    .line 850
    iput-wide v0, p0, Lcom/facebook/orca/compose/ComposeView;->as:J

    .line 852
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->T:Lcom/facebook/orca/push/PresenceManager;

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ao:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/push/PresenceManager;->b(Ljava/lang/String;I)V

    .line 853
    iget v0, p0, Lcom/facebook/orca/compose/ComposeView;->aq:I

    if-ne v0, v5, :cond_0

    .line 854
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->L()V
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/compose/ComposeView;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 79
    iput-boolean p1, p0, Lcom/facebook/orca/compose/ComposeView;->au:Z

    return p1
.end method

.method static synthetic b(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->A()V

    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/compose/ComposeView;Lcom/facebook/orca/location/LocationResult;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 79
    invoke-direct {p0, p1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/location/LocationResult;)V

    return-void
.end method

.method private b(Lcom/facebook/orca/location/LocationResult;)V
    .locals 2
    .parameter

    .prologue
    .line 739
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    sget-object v1, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-eq v0, v1, :cond_0

    .line 740
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->HAS_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    invoke-direct {p0, v0, p1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 742
    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/facebook/orca/compose/ComposeView;)Lcom/facebook/orca/compose/ComposeMode;
    .locals 1
    .parameter

    .prologue
    .line 79
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->an:Lcom/facebook/orca/compose/ComposeMode;

    return-object v0
.end method

.method static synthetic d(Lcom/facebook/orca/compose/ComposeView;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 79
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    return-object v0
.end method

.method private d(Ljava/lang/String;)V
    .locals 6
    .parameter
        .annotation runtime Ljavax/annotation/Nullable;
        .end annotation
    .end parameter

    .prologue
    const/4 v5, 0x0

    const/4 v2, 0x0

    .line 669
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    .line 670
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->W:Landroid/view/LayoutInflater;

    const v1, 0x7f03001e

    invoke-virtual {v0, v1, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 671
    const v0, 0x7f08007c

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 673
    if-eqz p1, :cond_0

    .line 674
    const v4, 0x7f0a0095

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(I)V

    .line 679
    :goto_0
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, v3}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 680
    const v3, 0x7f0a0094

    invoke-virtual {v0, v3}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    .line 681
    if-eqz p1, :cond_1

    .line 682
    const v3, 0x7f0a0096

    new-instance v4, Lcom/facebook/orca/compose/ComposeView$13;

    invoke-direct {v4, p0, p1}, Lcom/facebook/orca/compose/ComposeView$13;-><init>(Lcom/facebook/orca/compose/ComposeView;Ljava/lang/String;)V

    invoke-virtual {v0, v3, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 691
    const v3, 0x7f0a0004

    invoke-virtual {v0, v3, v5}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 695
    :goto_1
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    move v3, v2

    move v4, v2

    move v5, v2

    .line 696
    invoke-virtual/range {v0 .. v5}, Landroid/app/AlertDialog;->setView(Landroid/view/View;IIII)V

    .line 697
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 698
    return-void

    .line 676
    :cond_0
    const v4, 0x7f0a0097

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 693
    :cond_1
    const v3, 0x7f0a0003

    invoke-virtual {v0, v3, v5}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    goto :goto_1
.end method

.method private e(Ljava/lang/String;)Landroid/text/SpannableString;
    .locals 4
    .parameter

    .prologue
    .line 795
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->k()Landroid/content/res/Resources;

    move-result-object v0

    .line 796
    new-instance v1, Lcom/facebook/orca/common/util/StyledStringBuilder;

    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->k()Landroid/content/res/Resources;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/facebook/orca/common/util/StyledStringBuilder;-><init>(Landroid/content/res/Resources;)V

    .line 797
    new-instance v2, Landroid/text/style/ForegroundColorSpan;

    const v3, 0x7f090016

    invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    invoke-direct {v2, v0}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v0, 0x21

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/common/util/StyledStringBuilder;->a(Ljava/lang/Object;I)Lcom/facebook/orca/common/util/StyledStringBuilder;

    .line 800
    invoke-virtual {v1, p1}, Lcom/facebook/orca/common/util/StyledStringBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/common/util/StyledStringBuilder;

    .line 801
    invoke-virtual {v1}, Lcom/facebook/orca/common/util/StyledStringBuilder;->a()Lcom/facebook/orca/common/util/StyledStringBuilder;

    .line 802
    invoke-virtual {v1}, Lcom/facebook/orca/common/util/StyledStringBuilder;->b()Landroid/text/SpannableString;

    move-result-object v0

    return-object v0
.end method

.method private e()V
    .locals 6

    .prologue
    .line 309
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 310
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->f()Landroid/view/TouchDelegate;

    move-result-object v0

    .line 311
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->g()Landroid/view/TouchDelegate;

    move-result-object v1

    .line 313
    new-instance v2, Lcom/facebook/orca/common/ui/util/CompoundTouchDelegate;

    iget-object v3, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    const/4 v4, 0x2

    new-array v4, v4, [Landroid/view/TouchDelegate;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    const/4 v0, 0x1

    aput-object v1, v4, v0

    invoke-direct {v2, v3, v4}, Lcom/facebook/orca/common/ui/util/CompoundTouchDelegate;-><init>(Landroid/view/View;[Landroid/view/TouchDelegate;)V

    .line 315
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 317
    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->e()V

    return-void
.end method

.method private f()Landroid/view/TouchDelegate;
    .locals 3

    .prologue
    .line 320
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const/4 v1, 0x5

    invoke-static {v0, v1}, Lcom/facebook/orca/common/util/SizeUtil;->a(Landroid/content/Context;I)I

    move-result v0

    .line 321
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    .line 322
    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ac:Landroid/widget/ImageButton;

    invoke-virtual {v2, v1}, Landroid/widget/ImageButton;->getHitRect(Landroid/graphics/Rect;)V

    .line 323
    iget v2, v1, Landroid/graphics/Rect;->left:I

    sub-int/2addr v2, v0

    iput v2, v1, Landroid/graphics/Rect;->left:I

    .line 324
    iget v2, v1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v2, v0

    iput v2, v1, Landroid/graphics/Rect;->top:I

    .line 325
    iget v2, v1, Landroid/graphics/Rect;->right:I

    add-int/2addr v2, v0

    iput v2, v1, Landroid/graphics/Rect;->right:I

    .line 326
    iget v2, v1, Landroid/graphics/Rect;->bottom:I

    add-int/2addr v0, v2

    iput v0, v1, Landroid/graphics/Rect;->bottom:I

    .line 327
    new-instance v0, Landroid/view/TouchDelegate;

    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ac:Landroid/widget/ImageButton;

    invoke-direct {v0, v1, v2}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    return-object v0
.end method

.method static synthetic f(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->C()V

    return-void
.end method

.method private g()Landroid/view/TouchDelegate;
    .locals 3

    .prologue
    .line 331
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    const/4 v1, 0x5

    invoke-static {v0, v1}, Lcom/facebook/orca/common/util/SizeUtil;->a(Landroid/content/Context;I)I

    move-result v0

    .line 332
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    .line 333
    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ad:Landroid/widget/Button;

    invoke-virtual {v2, v1}, Landroid/widget/Button;->getHitRect(Landroid/graphics/Rect;)V

    .line 334
    iget v2, v1, Landroid/graphics/Rect;->left:I

    sub-int/2addr v2, v0

    iput v2, v1, Landroid/graphics/Rect;->left:I

    .line 335
    iget v2, v1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v2, v0

    iput v2, v1, Landroid/graphics/Rect;->top:I

    .line 336
    iget v2, v1, Landroid/graphics/Rect;->right:I

    add-int/2addr v2, v0

    iput v2, v1, Landroid/graphics/Rect;->right:I

    .line 337
    iget v2, v1, Landroid/graphics/Rect;->bottom:I

    add-int/2addr v0, v2

    iput v0, v1, Landroid/graphics/Rect;->bottom:I

    .line 338
    new-instance v0, Landroid/view/TouchDelegate;

    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ad:Landroid/widget/Button;

    invoke-direct {v0, v1, v2}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    return-object v0
.end method

.method static synthetic g(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->x()V

    return-void
.end method

.method static synthetic h(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->z()V

    return-void
.end method

.method static synthetic i(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->P()V

    return-void
.end method

.method static synthetic j(Lcom/facebook/orca/compose/ComposeView;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->K()V

    return-void
.end method

.method static synthetic k(Lcom/facebook/orca/compose/ComposeView;)Lcom/facebook/orca/prefs/OrcaSharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 79
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->O:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    return-object v0
.end method

.method private x()V
    .locals 3

    .prologue
    .line 342
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 343
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 344
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-virtual {v1, v0}, Landroid/widget/ImageButton;->getHitRect(Landroid/graphics/Rect;)V

    .line 345
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    const/16 v2, 0xa

    invoke-static {v1, v2}, Lcom/facebook/orca/common/util/SizeUtil;->a(Landroid/content/Context;I)I

    move-result v1

    .line 346
    iget v2, v0, Landroid/graphics/Rect;->left:I

    sub-int/2addr v2, v1

    iput v2, v0, Landroid/graphics/Rect;->left:I

    .line 347
    iget v2, v0, Landroid/graphics/Rect;->top:I

    sub-int/2addr v2, v1

    iput v2, v0, Landroid/graphics/Rect;->top:I

    .line 348
    iget v2, v0, Landroid/graphics/Rect;->right:I

    add-int/2addr v2, v1

    iput v2, v0, Landroid/graphics/Rect;->right:I

    .line 349
    iget v2, v0, Landroid/graphics/Rect;->bottom:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    .line 350
    new-instance v1, Landroid/view/TouchDelegate;

    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    invoke-direct {v1, v0, v2}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    .line 351
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->Z:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 353
    :cond_0
    return-void
.end method

.method private y()V
    .locals 2

    .prologue
    .line 467
    iget-boolean v0, p0, Lcom/facebook/orca/compose/ComposeView;->ap:Z

    if-eqz v0, :cond_0

    .line 479
    :goto_0
    return-void

    .line 470
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->M:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/DataCache;->d(Ljava/lang/String;)Lcom/facebook/orca/threads/ThreadSummary;

    move-result-object v0

    .line 471
    if-eqz v0, :cond_1

    .line 472
    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->g()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 473
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->R:Lcom/facebook/orca/cache/ThreadDisplayCache;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/cache/ThreadDisplayCache;->d(Lcom/facebook/orca/threads/ThreadSummary;)Lcom/facebook/orca/threads/ThreadParticipant;

    move-result-object v0

    .line 475
    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadParticipant;->c()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ao:Ljava/lang/String;

    .line 478
    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/compose/ComposeView;->ap:Z

    goto :goto_0
.end method

.method private z()V
    .locals 3

    .prologue
    .line 521
    new-instance v0, Lcom/facebook/orca/photos/picking/PickMediaParams;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lcom/facebook/orca/photos/picking/PickMediaParams;-><init>(Z)V

    .line 522
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    const v2, 0x7f0a0089

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/photos/picking/PickMediaParams;->a(Ljava/lang/String;)Lcom/facebook/orca/photos/picking/PickMediaParams;

    .line 523
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    if-eqz v1, :cond_0

    .line 524
    sget-object v1, Lcom/facebook/orca/photos/picking/MediaChoiceDialog$ButtonOption;->REMOVE:Lcom/facebook/orca/photos/picking/MediaChoiceDialog$ButtonOption;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/photos/picking/PickMediaParams;->a(Lcom/facebook/orca/photos/picking/MediaChoiceDialog$ButtonOption;)Lcom/facebook/orca/photos/picking/PickMediaParams;

    .line 527
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/photos/picking/PickMediaOperation;->a(Lcom/facebook/orca/photos/picking/PickMediaParams;)V

    .line 528
    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 215
    invoke-super {p0, p1, p2, p3}, Lcom/facebook/orca/activity/OrcaFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    .line 216
    const v0, 0x7f030006

    invoke-virtual {p0, p1, p2, v0}, Lcom/facebook/orca/compose/ComposeView;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    .line 217
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    invoke-virtual {p0, v0}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 219
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setFocusable(Z)V

    .line 220
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$3;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$3;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 235
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$4;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$4;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    .line 242
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$5;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$5;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 248
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$6;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$6;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->post(Ljava/lang/Runnable;)Z

    .line 255
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ac:Landroid/widget/ImageButton;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$7;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$7;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 261
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ad:Landroid/widget/Button;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$8;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$8;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 268
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$9;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$9;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 283
    const-string v0, "getLocationOperation"

    invoke-virtual {p0, v0}, Lcom/facebook/orca/compose/ComposeView;->c(Ljava/lang/String;)Lcom/facebook/orca/ops/OrcaServiceFragment;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->af:Lcom/facebook/orca/ops/OrcaServiceFragment;

    .line 284
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->af:Lcom/facebook/orca/ops/OrcaServiceFragment;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$10;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$10;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Lcom/facebook/orca/ops/OrcaServiceOperation$OnCompletedListener;)V

    .line 296
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->af:Lcom/facebook/orca/ops/OrcaServiceFragment;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$11;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$11;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Lcom/facebook/orca/ops/OrcaServiceOperation$OnProgressListener;)V

    .line 303
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V

    .line 305
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->X:Landroid/view/View;

    return-object v0
.end method

.method public a()V
    .locals 2

    .prologue
    .line 382
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragment;->a()V

    .line 383
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->T:Lcom/facebook/orca/push/PresenceManager;

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->av:Lcom/facebook/orca/push/PresenceManager$OnContactTypingStateChangedListener;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/push/PresenceManager;->b(Lcom/facebook/orca/push/PresenceManager$OnContactTypingStateChangedListener;)V

    .line 384
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 357
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragment;->a(Landroid/os/Bundle;)V

    .line 359
    if-eqz p1, :cond_0

    .line 360
    const-string v0, "imageAttachment"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/attachments/MediaResource;

    .line 361
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->N:Lcom/facebook/orca/attachments/MediaAttachmentFactory;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/attachments/MediaAttachmentFactory;->b(Lcom/facebook/orca/attachments/MediaResource;)Lcom/facebook/orca/attachments/MediaAttachment;

    move-result-object v0

    .line 362
    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/attachments/MediaAttachment;Z)V

    .line 364
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    .line 365
    const/4 v1, 0x0

    .line 366
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->F()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 367
    const-string v0, "locationState"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/facebook/orca/compose/ComposeView$LocationState;->valueOf(Ljava/lang/String;)Lcom/facebook/orca/compose/ComposeView$LocationState;

    move-result-object v1

    .line 368
    const-string v0, "location"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/location/LocationResult;

    .line 372
    :goto_0
    invoke-direct {p0, v1, v0}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 373
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    if-eq v1, v0, :cond_0

    .line 375
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->I()V

    .line 378
    :cond_0
    return-void

    :cond_1
    move-object v3, v1

    move-object v1, v0

    move-object v0, v3

    goto :goto_0
.end method

.method public a(Lcom/facebook/orca/compose/ComposeMode;)V
    .locals 2
    .parameter

    .prologue
    .line 428
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->EXPANDED:Lcom/facebook/orca/compose/ComposeMode;

    if-ne p1, v0, :cond_1

    .line 429
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->Y:Landroid/view/View;

    const v1, 0x7f020013

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 430
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 431
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->B()V

    .line 439
    :cond_0
    :goto_0
    iput-object p1, p0, Lcom/facebook/orca/compose/ComposeView;->an:Lcom/facebook/orca/compose/ComposeMode;

    .line 440
    return-void

    .line 433
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->Y:Landroid/view/View;

    const v1, 0x7f020012

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 434
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 435
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ab:Landroid/widget/ImageButton;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 436
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->P:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a()V

    goto :goto_0
.end method

.method public a(Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;)V
    .locals 0
    .parameter

    .prologue
    .line 447
    iput-object p1, p0, Lcom/facebook/orca/compose/ComposeView;->am:Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;

    .line 448
    return-void
.end method

.method public a(Lcom/facebook/orca/server/OutgoingMessage;)V
    .locals 4
    .parameter

    .prologue
    .line 419
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    .line 420
    invoke-static {v0}, Lcom/facebook/orca/common/util/StringUtil;->a(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 421
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {p1}, Lcom/facebook/orca/server/OutgoingMessage;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 425
    :goto_0
    return-void

    .line 423
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Lcom/facebook/orca/server/OutgoingMessage;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\n"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method public a(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 410
    iput-object p1, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    .line 411
    return-void
.end method

.method public b()Lcom/facebook/orca/server/OutgoingMessage;
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 451
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->y()V

    .line 452
    new-instance v0, Lcom/facebook/orca/server/OutgoingMessageBuilder;

    invoke-direct {v0}, Lcom/facebook/orca/server/OutgoingMessageBuilder;-><init>()V

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ag:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->b(Ljava/lang/String;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(Z)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ak:Lcom/facebook/orca/location/LocationResult;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ak:Lcom/facebook/orca/location/LocationResult;

    invoke-virtual {v1}, Lcom/facebook/orca/location/LocationResult;->b()Landroid/location/Location;

    move-result-object v1

    :goto_0
    invoke-static {v1}, Lcom/facebook/orca/location/Coordinates;->a(Landroid/location/Location;)Lcom/facebook/orca/location/Coordinates;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(Lcom/facebook/orca/location/Coordinates;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    invoke-virtual {v1}, Lcom/facebook/orca/attachments/MediaAttachment;->d()Lcom/facebook/orca/attachments/MediaResource;

    move-result-object v1

    :goto_1
    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(Lcom/facebook/orca/attachments/MediaResource;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ao:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->d(Ljava/lang/String;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->S:Lcom/facebook/orca/common/util/OfflineThreadingIdGenerator;

    invoke-virtual {v1}, Lcom/facebook/orca/common/util/OfflineThreadingIdGenerator;->a()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(J)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->i()Lcom/facebook/orca/server/OutgoingMessage;

    move-result-object v0

    .line 463
    return-object v0

    :cond_0
    move-object v1, v2

    .line 452
    goto :goto_0

    :cond_1
    move-object v1, v2

    goto :goto_1
.end method

.method public b(Landroid/content/Intent;)V
    .locals 2
    .parameter

    .prologue
    .line 495
    :try_start_0
    const-string v0, "share_text"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 496
    if-eqz v0, :cond_0

    .line 497
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 499
    :cond_0
    const-string v0, "share_photo_uri"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/net/Uri;

    .line 500
    if-eqz v0, :cond_1

    .line 501
    invoke-static {v0}, Lcom/facebook/orca/attachments/MediaResource;->a(Landroid/net/Uri;)Lcom/facebook/orca/attachments/MediaResource;

    move-result-object v0

    .line 502
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->N:Lcom/facebook/orca/attachments/MediaAttachmentFactory;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/attachments/MediaAttachmentFactory;->a(Lcom/facebook/orca/attachments/MediaResource;)Lcom/facebook/orca/attachments/MediaAttachment;

    move-result-object v0

    .line 504
    const/4 v1, 0x1

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/attachments/MediaAttachment;Z)V

    .line 506
    :cond_1
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V
    :try_end_0
    .catch Lcom/facebook/orca/attachments/UnknownAttachmentTypeException; {:try_start_0 .. :try_end_0} :catch_0

    .line 513
    :goto_0
    return-void

    .line 507
    :catch_0
    move-exception v0

    .line 508
    invoke-virtual {p0}, Lcom/facebook/orca/compose/ComposeView;->k()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a0088

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 510
    invoke-direct {p0, v0}, Lcom/facebook/orca/compose/ComposeView;->e(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;->WARNING:Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Ljava/lang/CharSequence;Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;)V

    goto :goto_0
.end method

.method public b(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 388
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragment;->b(Landroid/os/Bundle;)V

    .line 392
    const-string v0, "imageAttachment"

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    if-nez v1, :cond_0

    const/4 v1, 0x0

    :goto_0
    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 394
    const-string v0, "locationState"

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->aj:Lcom/facebook/orca/compose/ComposeView$LocationState;

    invoke-virtual {v1}, Lcom/facebook/orca/compose/ComposeView$LocationState;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 395
    const-string v0, "location"

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ak:Lcom/facebook/orca/location/LocationResult;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 396
    return-void

    .line 392
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    invoke-virtual {v1}, Lcom/facebook/orca/attachments/MediaAttachment;->d()Lcom/facebook/orca/attachments/MediaResource;

    move-result-object v1

    goto :goto_0
.end method

.method public b(Ljava/lang/String;)V
    .locals 3
    .parameter

    .prologue
    .line 584
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->al:Ljava/lang/Boolean;

    if-eqz v0, :cond_0

    .line 585
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->O:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    invoke-virtual {v0}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a()Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;

    move-result-object v0

    .line 586
    invoke-static {p1}, Lcom/facebook/orca/prefs/PrefKeys;->b(Ljava/lang/String;)Lcom/facebook/orca/prefs/PrefKey;

    move-result-object v1

    .line 587
    iget-object v2, p0, Lcom/facebook/orca/compose/ComposeView;->al:Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a(Lcom/facebook/orca/prefs/PrefKey;Z)V

    .line 588
    invoke-virtual {v0}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a()V

    .line 590
    :cond_0
    return-void
.end method

.method public c()Z
    .locals 1

    .prologue
    .line 482
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/facebook/orca/common/util/StringUtil;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ai:Lcom/facebook/orca/attachments/MediaAttachment;

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public d()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 486
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->aa:Landroid/widget/EditText;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 487
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->A()V

    .line 488
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->N()V

    .line 489
    sget-object v0, Lcom/facebook/orca/compose/ComposeView$LocationState;->NO_LOCATION:Lcom/facebook/orca/compose/ComposeView$LocationState;

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$LocationState;Lcom/facebook/orca/location/LocationResult;)V

    .line 490
    invoke-direct {p0}, Lcom/facebook/orca/compose/ComposeView;->B()V

    .line 491
    return-void
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 168
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragment;->d(Landroid/os/Bundle;)V

    .line 170
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->Q:Landroid/support/v4/app/FragmentManager;

    const-string v1, "pickPhotoOperation"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->a(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/photos/picking/PickMediaOperation;

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

    .line 172
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

    if-nez v0, :cond_0

    .line 173
    new-instance v0, Lcom/facebook/orca/photos/picking/PickMediaOperation;

    invoke-direct {v0}, Lcom/facebook/orca/photos/picking/PickMediaOperation;-><init>()V

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

    .line 174
    const-string v0, "pickPhotoOperation"

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

    invoke-virtual {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Ljava/lang/String;Landroid/support/v4/app/Fragment;)V

    .line 176
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->ah:Lcom/facebook/orca/photos/picking/PickMediaOperation;

    new-instance v1, Lcom/facebook/orca/compose/ComposeView$1;

    invoke-direct {v1, p0}, Lcom/facebook/orca/compose/ComposeView$1;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/photos/picking/PickMediaOperation;->a(Lcom/facebook/orca/photos/picking/PickMediaOperation$OnMediaPickedListener;)V

    .line 201
    new-instance v0, Lcom/facebook/orca/compose/ComposeView$2;

    invoke-direct {v0, p0}, Lcom/facebook/orca/compose/ComposeView$2;-><init>(Lcom/facebook/orca/compose/ComposeView;)V

    iput-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->av:Lcom/facebook/orca/push/PresenceManager$OnContactTypingStateChangedListener;

    .line 207
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->T:Lcom/facebook/orca/push/PresenceManager;

    iget-object v1, p0, Lcom/facebook/orca/compose/ComposeView;->av:Lcom/facebook/orca/push/PresenceManager$OnContactTypingStateChangedListener;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/push/PresenceManager;->a(Lcom/facebook/orca/push/PresenceManager$OnContactTypingStateChangedListener;)V

    .line 208
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->P:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(Z)V

    .line 209
    return-void
.end method

.method public r()V
    .locals 2

    .prologue
    .line 400
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragment;->r()V

    .line 401
    iget-object v0, p0, Lcom/facebook/orca/compose/ComposeView;->P:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a()V

    .line 402
    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-direct {p0, v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(ZZ)V

    .line 403
    return-void
.end method
